<?php
namespace App\Repositories;

use App\Exceptions\BasicException;
use Illuminate\Support\Facades\Hash;
use function Matrix\add;    //引入hash

class LisenceOrderLogRepository
{
    /**
     * 资质订单日志列表
     * @param  $order_id
     * @return bool
     */
    public function orderLogList($order_id)
    {
        $list = app('model_lisence_order_log')->with('admin:admin_id,admin_name')->where('order_id',$order_id)->get()->toArray();
        return  $list;
    }

    /**
     * 新增订单日志
     * @param  $param
     * @return bool
     * @throws BasicException
     */

    public function  addOrderLog($param){
        $add = app('model_lisence_order_log')->create($param);
        if ($add) return $add;
        throw new BasicException(93131);
    }

}


?>